.class Lcom/waiqin365/lightapp/returngoods/a/c;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/widget/CheckBox;

.field final synthetic b:Lcom/waiqin365/lightapp/returngoods/a/a;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/returngoods/a/a;Landroid/widget/CheckBox;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    iput-object p2, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->a:Landroid/widget/CheckBox;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8

    const-wide/16 v6, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->a:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/d;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/d;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/returngoods/a/a;->a(Ljava/lang/String;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v1

    if-nez v1, :cond_0

    new-instance v1, Lcom/waiqin365/lightapp/product/d/d;

    invoke-direct {v1, v0}, Lcom/waiqin365/lightapp/product/d/d;-><init>(Lcom/waiqin365/base/db/jxccache/g;)V

    iget-object v2, v0, Lcom/waiqin365/lightapp/product/d/d;->m:Ljava/lang/String;

    invoke-static {v2, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;D)D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/Double;)V

    :cond_0
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/returngoods/a/a;->a()Landroid/content/Context;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v4}, Lcom/waiqin365/lightapp/returngoods/a/a;->d()Ljava/lang/Class;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "pdCache"

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v3, "pdId"

    invoke-virtual {v1}, Lcom/waiqin365/base/db/jxccache/g;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v3, "selectedList"

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/returngoods/a/a;->c()Ljava/util/List;

    move-result-object v1

    check-cast v1, Ljava/io/Serializable;

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v1, "isShowHistory"

    const/4 v3, 0x1

    invoke-virtual {v2, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v1, "isJT"

    iget-object v3, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    iget-boolean v3, v3, Lcom/waiqin365/lightapp/returngoods/a/a;->e:Z

    invoke-virtual {v2, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v1, "cmId"

    iget-object v3, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    iget-object v3, v3, Lcom/waiqin365/lightapp/returngoods/a/a;->f:Ljava/lang/String;

    invoke-virtual {v2, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "isModify"

    const/4 v3, 0x0

    invoke-virtual {v2, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/d;->g()Ljava/lang/Double;

    move-result-object v0

    invoke-static {v0, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v0

    cmpl-double v3, v0, v6

    if-lez v3, :cond_1

    const-string/jumbo v3, "maxCount"

    invoke-virtual {v2, v3, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;D)Landroid/content/Intent;

    const-string/jumbo v0, "maxStr"

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/returngoods/a/a;->a()Landroid/content/Context;

    move-result-object v1

    const v3, 0x7f0806de

    invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/c;->b:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/a/a;->a()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const/16 v1, 0x3ea

    invoke-virtual {v0, v2, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method
